/**
 * LY.com Inc.
 * Copyright (c) 2004-2018 All Rights Reserved.
 */
package com.gitee.kamismile.stone.rpc.common.errorenum;

/**
 * @author dong.li
 * @version $Id: ErrorEnum, v 0.1 2018/11/29 14:17 dong.li Exp $
 */
public enum RpcErrorEnum {
    //0 正常 非0 异常 -1 ~ 3999 为保留
    //1000  系统
    //2000  RPC
    //3000  组件
    STARTSYSTEM(2001, "容器启动异常"),
    DOWNSYSTEM(2002, "容器关闭"),
    NOTFOUNDSERVER(2030, "未找到服务"),
    CREATESERVER(2031, "服务调用建立异常"),
    SENDSERVER(2032, "服务调用异常"),
    SERVERCLOSE(2033, "服务关闭"),
    OUTTIME(2035, "服务调用超时"),
    PROXYINS(2040, "实例化代理异常"),

    ;
    private int code;
    private String message;


    RpcErrorEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
